package project.dao.impl;

import Utils.db.dao.BaseDAO;
import project.dao.OrderDAO;
import project.pojo.Order;

/**
 * @author d11yu
 */
public class OrderDAOImpl extends BaseDAO implements OrderDAO {
    @Override
    public int addOrder(Order order) {
        String sql = "insert into t_order (id, create_time, price, status, user_id) values (?,?,?,?,?)";
        return update(sql, order.getId(), order.getCreateTime(), order.getPrice(), order.getStatus(), order.getUserId());
    }
}
